//package com.alks.common.config;
//
//import com.alks.common.config.interceptor.AuthenticateInterceptor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        String[] swaggerExcludes=new String[]{"/swagger-ui.html","/swagger-resources/**",
//                "/webjars/**","/doc.html","/user/login/**","/user/logout/**","/sdStyle/busMtlDownload","/pad/**"};
//        registry.addInterceptor(authenticateInterceptor())
//                .excludePathPatterns(swaggerExcludes)
//                .addPathPatterns("/**");
//    }
//
//    @Bean
//    public AuthenticateInterceptor authenticateInterceptor() {
//        return new AuthenticateInterceptor();
//    }
//}
